#include <stdio.h>
void chline(char ch, int i, int j);
int main(void)
{
    char ch;
    int i, j;

    printf("Enter char, row and col (EOF to quit): ");
    while ((scanf("%c %d %d", &ch, &i, &j)) != EOF)
    {
        while (getchar() != '\n')
            continue;
        chline(ch, i, j);
        printf("Enter another char, row and col (EOF to quit):");
    }
    printf("Bye!\n");

    return 0;
}

void chline(char ch, int i, int j)
{
    int row, col;

    for (row = 1; row <= i; row++)
    {
        for (col = 1; col <= j; col++)
            putchar(ch);
        printf("\n");
    }
}